<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>

<script>
var date = new Date();
document.write(date.getFullYear());
document.write(date.getTime());
date.setFullYear(2010,1,1);
document.write(date);
document.write(date.getHours());
document.write(date.getMinutes());
document.write(date.getSeconds());
//定时器
// setTimeout(function (params) {
    
// },1000);

</script>
</html>